package com.bookmall.product.domain;

import com.baomidou.mybatisplus.annotation.*;
import com.bookmall.common.entity.MyPageEntity;
import com.ruoyi.common.core.annotation.Excel;
import lombok.Data;

import java.io.Serializable;

/**
 *
 * @Author 胡菜鸡
 * @Create 2022-02-21-17:00
 */
@Data
@TableName("book_category")
public class BookCategory extends MyPageEntity {

    @TableId(value = "id", type = IdType.ASSIGN_ID)
    private String id;

    @Excel(name = "分类名称")
    @TableField(condition = SqlCondition.LIKE)
    private String catName;

    @Excel(name = "父分类id")
    private String parentCid;

    @TableField(exist = false)
    private String parentName;

    @Excel(name = "分类层级")
    private Integer catLevel;

    @Excel(name = "分类下的书籍数量")
    private Integer bookCount;

    @Excel(name = "排序")
    private Integer sort;

    @Excel(name = "展示状态", readConverterExp = "0=展示,1=不展示")
    private String status;

    @Excel(name = "分类图标地址")
    private String icon;

}
